package com.dhecp.project.api.util;

import com.dhecp.common.config.Global;

/**
 * @ClassName ApiConfig
 * @Description TODO
 * @Author alula
 * @Date 2021-03-26 19:46
 */
public class ApiConfig {
    /**
     * scm给ERP的appId
     * @return
     */
    public static String getDasAppKey() {
        return Global.getConfig("api.das.appKey");

    }

    /**
     * scm给ERP的appKey
     * @return
     */
    public static String getDasAppSecret() {
        return Global.getConfig("api.das.appSecret");
    }

    /**
     * 获取1688 APPKEY
     * @return
     */
    public static String get1688AppKey(){
        return Global.getConfig("api.ali1688.appKey");
    }

    /**
     * 获取1688 AppSecret
     * @return
     */
    public static String get1688AppSecret(){
        return Global.getConfig("api.ali1688.appSecret");
    }

    /**
     * 获了以API部署URL
     * @return
     */
    public static String getApiDeployUrl(){
        return Global.getConfig("dhecp.apiDeployUrl");
    }

    /**
     * 获了以amazon的awsAccessKey
     * @return
     */
    public static String getAmazonAwsAccessKey(){
        return Global.getConfig("api.amazon.awsAccessKey");
    }

    /**
     * 获了以amazon的awsAccessSecret
     * @return
     */
    public static String getAmazonAwsAccessSecret(){
        return Global.getConfig("api.amazon.awsAccessSecret");
    }

    /**
     * 获了以amazon的roleArn
     * @return
     */
    public static String getAmazonRoleArn(){
        return Global.getConfig("api.amazon.roleArn");
    }

    /**
     * 获了以amazon的roleSessionName
     * @return
     */
    public static String getAmazonRoleSessionName(){
        return Global.getConfig("api.amazon.roleSessionName");
    }

    /**
     * 获了以amazon的lwaClientKey
     * @return
     */
    public static String getAmazonLwaClientKey(){
        return Global.getConfig("api.amazon.lwaClientKey");
    }

    /**
     * 获了以amazon的lwaClientSecret
     * @return
     */
    public static String getAmazonLwaClientSecret(){
        return Global.getConfig("api.amazon.lwaClientSecret");
    }

    /**
     * 获了以amazon的clientId
     * @return
     */
    public static String getAmazonClientId(){
        return Global.getConfig("api.amazon.clientId");
    }

    /**
     * 获了以amazon的redirectUri
     * @return
     */
    public static String getAmazonRedirectUri(){
        return Global.getConfig("api.amazon.redirectUri");
    }

    /**
     * 获了以amazon的clientSecret
     * @return
     */
    public static String getAmazonClientSecret(){
        return Global.getConfig("api.amazon.clientSecret");
    }

    /**
     * 获了以amazon的lwaEndpoint
     * @return
     */
    public static String getAmazonLwaEndpoint(){
        return Global.getConfig("api.amazon.lwaEndpoint");
    }

    /**
     * 获了以amazon的appId
     * @return
     */
    public static String getAmazonAppKey(){
        return Global.getConfig("api.amazon.appKey");
    }

    /**
     * 获了以amazon的spApiAuthUrl授权地址
     * @return
     */
    public static String getAmazonSpApiAuthUrl(){
        return Global.getConfig("api.amazon.spApiAuthUrl");
    }

    /**
     * 获了以amazon的AdsApiAuthUrl授权地址
     * @return
     */
    public static String getAmazonAdsApiAuthUrl(){
        return Global.getConfig("api.amazon.adsApiAuthUrl");
    }

    /**
     * 获了Excel文件路径
     * @return
     */
    public static String getUploadExcel(){
        return Global.getConfig("dhecp.uploadExcel");
    }

    /**
     * 获了pdf文件路径
     * @return
     */
    public static String getUploadPdf(){
        return Global.getConfig("dhecp.uploadPdf");
    }

    /**
     * 大森林账号
     */
    public static String getWmsAccount() {
        return Global.getConfig("api.wms.account");
    }

    /**
     * 大森林密码
     */
    public static String getWmsPassword() {
        return Global.getConfig("api.wms.password");
    }

    /**
     * 大森林Url
     */
    public static String getWmsUrl() {
        return Global.getConfig("api.wms.url");
    }
}
